forum

home / developersection / forums / do static members help memory efficiency?

Do static members help memory efficiency?

Anonymous User 2004 20-Jul-2015

If I have a class that I expect to be used in thousands of instances in a memory-sensitive application, does it help if I factor out static functionality to static members?

I imagine that static methods and variables are stored once per class while for non-static members there has to be something stored for each instance.

With member variables, it seems quite clear, but what kind of data is stored for methods?


Updated on 20-Jul-2015

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By